APPENDMENU

Top  Previous  Next

Syntax

APPENDMENU(hmenu as UINT,item as STRING,flags as INT,id as UINT)

Description

Low level menu function used internally by menu creation macros. This function is equivalent to the Windows API AppendMenu call.

Parameters

hmenu - HANDLE to an exisitng menu or popup menu.

item - Text for new menu item.

flags - Menu creation flags.

id - Menu ID or handle to a popup menu.

Return value

None

Remarks

Used only for special cases where the menu creation macros do not provide enough functionality.

See Also: CREATEMENU, SETMENU

Example usage

hMenu = CreateMenu()
hPopup = CreateMenu(1)
APPENDMENU(hMenu, "File", MF_POPUP|MF_STRING, hPopup)
APPENDMENU(hPopup,"Open",MF_STRING,1)
APPENDMENU(hPopup,"Quit",MF_STRING,2)
SETMENU win, hMenu